home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 15 / macformat_15.iso / C de cerca / Codewarrior Lite / MacOS Support / Headers / ANSI Headers / stddef.h < prev    next >
Text File  |  1995-12-29  |  903b  |  55 lines

  1. /* stddef.h standard header */
  2. #ifndef _STDDEF
  3. #define _STDDEF
  4. #ifndef _YVALS
  5. #include <yvals.h>
  6. #endif
  7.  
  8. #if __MWERKS__
  9. #pragma options align=mac68k
  10.  
  11. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  12. #pragma import on
  13. #endif
  14. #endif
  15.  
  16.         /* macros */
  17. #ifndef NULL
  18. #define NULL    _NULL
  19. #endif
  20. #define offsetof(T, member)    ((_Sizet)&(((T *)0)->member))
  21.         /* type definitions */
  22. #ifndef    _PTRDIFFT
  23. #define _PTRDIFFT
  24. typedef _Ptrdifft ptrdiff_t;
  25. #endif
  26. #ifndef _SIZET
  27. #define _SIZET
  28. typedef _Sizet size_t;
  29. #endif
  30. #ifndef _WCHART
  31. #define _WCHART
  32. typedef _Wchart wchar_t;
  33. #endif
  34.  
  35. #if __MWERKS__
  36. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  37. #pragma import reset
  38. #endif
  39.  
  40. #pragma options align=reset
  41. #endif
  42.  
  43. #endif
  44.  
  45.  
  46. /*
  47.  * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
  48.  * Consult your license regarding permissions and restrictions.
  49.  */
  50.  
  51. /* Change log:
  52.  *94June04 PlumHall baseline
  53.  *94Oct07 Inserted MW changes.
  54.  */
  55.